package com.spm.utils;

import com.spm.dao.TeacherRCourseMapper;

public class TRCMapperUtil extends MybatisUtils{
    private  TeacherRCourseMapper teacherRCourseMapper;

    public TRCMapperUtil() {
        teacherRCourseMapper = getSqlSession().getMapper(TeacherRCourseMapper.class);
    }

    //更新余量
    public  int updateSurplus(String tid,String cno,Integer surplus){
        return this.teacherRCourseMapper.updateCSurplus(tid,cno,surplus);
    }
    public  void AddOneSurplus(String tid,String cno){this.teacherRCourseMapper.AddOneCSurplus(tid,cno);}
    public  void MinusOneSurplus(String tid,String cno){this.teacherRCourseMapper.MinusOneCSurplus(tid,cno);}
}
